/*
 * @Author: chengsl
 * @Date: 2023-02-10 11:35:14
 * @LastEditors: chengsl
 * @LastEditTime: 2023-02-10 11:35:56
 * @Description: file content
 */

import request from '@/utils/request'
const baseUrl = '/nodeApi'

// 登录接口
export function loginSys(data = {}) {
  return request({
    url: `${baseUrl}/sys/login`,
    method: 'post',
    // inUrl: true,
		reqEncryption: true, // 需要加密
    data,
    headers: {
      // 'Content-Type': 'multipart/form-data'
      // 'Content-Type': 'application/json'
    }
  })
}

// 退出系统
export function loginOutSys(data = {}) {
  return request({
    url: `${baseUrl}/sys/loginOut`,
    method: 'post',
    data
  })
}

// 查用户信息
export function getUserInfo(data = {}) {
  return request({
    url: `${baseUrl}/sys/info`,
    method: 'get',
    data
  })
}

